package com.sharp.portal.dao.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import lombok.Data;

/**
 * Title: CoPortalLayout
 * Description: Copyright: Copyright (c) 2022 Company: Sharp Ltd.
 *
 * @author Sharp
 * @date 2022/10/11 10:03
 */
@ApiModel(value = "co_portal_layout")
@Data
@Table(name = "co_portal_layout")
public class CoPortalLayout {
    /**
     * 页面路径
     */
    @Column(name = "`path`")
    @ApiModelProperty(value = "页面路径")
    private String path;

    /**
     * 字段名称
     */
    @Column(name = "property")
    @ApiModelProperty(value = "字段名称")
    private String property;

    /**
     * 字段类型
     */
    @Column(name = "data_type")
    @ApiModelProperty(value = "字段类型")
    private String dataType;

    /**
     * 字段显示
     */
    @Column(name = "display_name")
    @ApiModelProperty(value = "字段显示")
    private String displayName;

    /**
     * 只读
     */
    @Column(name = "read_only")
    @ApiModelProperty(value = "只读")
    private String readOnly;

    /**
     * 只写
     */
    @Column(name = "write_only")
    @ApiModelProperty(value = "只写")
    private String writeOnly;

    /**
     * 关联字典名
     */
    @Column(name = "reference")
    @ApiModelProperty(value = "关联字典名")
    private String reference;

    /**
     * 必填字段
     */
    @Column(name = "required")
    @ApiModelProperty(value = "必填字段")
    private String required;

    /**
     * 是否隐藏
     */
    @Column(name = "hidden")
    @ApiModelProperty(value = "是否隐藏")
    private String hidden;

    /**
     * 显示顺序
     */
    @Column(name = "display_order")
    @ApiModelProperty(value = "显示顺序")
    private Integer displayOrder;

    /**
     * id字段
     */
    @Column(name = "id_field")
    @ApiModelProperty(value = "id字段")
    private String idField;

    /**
     * 父id字段
     */
    @Column(name = "pid_field")
    @ApiModelProperty(value = "父id字段")
    private String pidField;

    /**
     * 显示字段
     */
    @Column(name = "display_field")
    @ApiModelProperty(value = "显示字段")
    private String displayField;

    /**
     * 自定义字段
     */
    @Column(name = "custom")
    @ApiModelProperty(value = "自定义字段")
    private String custom;

    /**
     * 是否支持上传
     */
    @Column(name = "upload")
    @ApiModelProperty(value = "是否支持上传")
    private String upload;
}